
package network.utils;

import java.io.File;

/**
 * ProxyConstants. Contains Server address & Port.
 * 
 */
public class ProxyConstants {

	// General Info ===========================================
	public static int logLevel = 0;

	public static int MAX_BUFFER = 30000;

	// Certificate Info ==================================

	public static String KEYSTORE_PATH = new File("").getAbsolutePath()
			+ File.separator + "ProxyCertificate.ser";

	public static String KEYSTORE_PASSWORD = "password";

	// Local Proxy configuration ==========================

	public static String HTTPProxyHost = "127.0.0.1";

	public static String SSLProxyHost = "127.0.0.1";
        
        public static String SOCKSProxyHost = "127.0.0.1";

	public static String HTTPSServer_443 = "127.0.0.1";

	public static String HTTPSServer_8443 = "127.0.0.1";

	public static int HTTPSPort_443 = 4200;

	public static int HTTPSPort_8443 = 4210;

	// Following port numbers you need to set in Browser =========

	public static int HTTPProxyPort = 6050;

	public static int SSLProxyPort = 6051;
        
        public static int SOCKSProxyPort = 6053;

	// WEB Server Information =====================================

	public static String webPHP_HOST_HTTP = "";

	public static int webPHP_PORT_HTTP = 0;

	public static String webPHP_URL_HTTP = "";

	// Organization Proxy Information ==============================

	public static String ORGANIZATION_HTTP_PROXY_HOST = "";

	public static int ORGANIZATION_HTTP_PROXY_PORT = 0;

	public static String ORGANIZATION_HTTP_PROXY_USER_NAME = "";

	public static String ORGANIZATION_HTTP_PROXY_USER_PASS = "";

	// Log File ===================
	public static String LOG_FILE = new File("").getAbsolutePath()
			+ File.separator + "ProxyLog.txt";

	// Enabled encryption will encrtpy all trafic hence there is no way to
	// monitor which target server your are accessing.
	public static boolean ENCRYPTION_ENABLED = false;

	// Misc ===================
	public static long TOTAL_TRANSFER = 0;
        

	public static Object MUTEX = new Object();

	// SHOULD be same as defined in PHP file.
	public static int ENCKEY = 20;

}
